<template>
	<view class="page" :style="themeColor">
		<view
			class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex agreement_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-stretch justify-between agreement_fd0_0'>
				<view class='flex flex-wrap align-center agreement_fd0_0_c0' style="padding-top: 16rpx;">
					<person></person>
				</view>
				<view class='flex flex-wrap align-center'>
					<text class='agreement_fd0_0_c1_c0'>详情</text>
				</view>
				<view class='flex align-center justify-end agreement_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#6A0002"></u-loading>
			<view class="loading_text">加载中</view>
		</view>
		<template v-else>
			<view style="padding: 8rpx 32rpx;">
				<back></back>
			</view>
			<view class="ben_fu-jyf-parser_1">
				<view class="title">{{detailInfo.title}}</view>
				<view class="title_date">{{detailInfo.create_time}}</view>
				
				<view class="title_view">
					<u-parse :html="detailInfo.content"></u-parse>
				</view>
			</view>
		</template>
		

	</view>
</template>
<script>
	import back from "@/components/back/index.vue"
	import person from "@/components/person/index.vue"
	export default {
		components: {
			back,
			person
		},

		data() {
			return {
				"parser1": "",
				"id": "",
				"isShow": true,
				"detailInfo": {}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options
			if (id !== undefined) this.id = id
			this.getAgreement();
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			// 消息详情  post63bd17e7a02d5
			getAgreement() {
				this.$api.post(global.API_VERSION + '/643916495c693', {
					msg_id: this.id
				}).then(res => {
					// console.log(res);
					if (res.data.code == 1) {
						this.isShow = false;
						this.detailInfo = res.data.data;
					} else {
						this.$message.info(res.data.msg);
					}
				})
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: var(--benbenFontColor3);
		background-size: 100% auto !important;
	}

	.agreement_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		background-size: 100% !important;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.agreement_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 150rpx;
	}

	.agreement_fd0_0_c1_c0_1 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.agreement_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.agreement_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
	}

	.agreement_fd0_0_c0 {
		width: 150rpx;
	}

	.agreement_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.ben_fu-jyf-parser_1 {
		background-color: #fff;
		padding-left: 32rpx;
		padding-right: 32rpx;
		padding-top: 32rpx;
		padding-bottom: 32rpx;

	}
	.title {
		font-size: 32rpx;
		// text-align: center;
	}
	.title_date {
		font-size: 24rpx;
		color: #999;
		margin: 24rpx 0 12rpx;
	}
	.title_view {
		font-size: 28rpx;
	}
</style>
